package com.pand.model.user;

import com.pand.model.company.Orgnization;

/**
 * 
 * @ClassName: UserDto 
 * @Description: 查询用户的条件
 *
 */
public class UserDto extends User {
	
	/** 
	 * @Fields serialVersionUID : 
	 */ 
	private static final long serialVersionUID = 1L;
	/**
	 * 组织名称
	 */
	private String orgName;

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public void copyFrom(User user) {
		this.setCreateTime(user.getCreateTime());
		this.setId(user.getId());
		this.setLastLoginTime(user.getLastLoginTime());
		this.setLoginID(user.getLoginID());
		this.setOrgID(user.getOrgID());
		this.setPassword(user.getPassword());
		this.setPosition(user.getPosition());
		this.setRoles(user.getRoles());
		this.setUserMail(user.getUserMail());
		this.setUserName(user.getUserName());
		this.setUserPhone(user.getUserPhone());

	}
	public void copyFrom(Orgnization org){
		this.setOrgName(org.getName());
	}
}
